﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="posttext.aspx.cs" Inherits="weikebuluo.web.admin.postmessage.posttext" %>
<html xmlns="http://www.w3.org/1999/xhtml"><head id="Head1"><title>
	IdeaSoft软件
</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="Keywords" content="IdeaSoft软件"><meta name="Description" content="IdeaSoft软件微信">
<link rel="stylesheet" type="text/css" href="/css/Bootstrap/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="/css/Bootstrap/bootstrap.responsive.min.css">
<link rel="stylesheet" type="text/css" href="/css/Bootstrap/style.css">
<link rel="stylesheet" type="text/css" href="/css/Bootstrap/themes.css">
<link rel="stylesheet" type="text/css" href="/css/Bootstrap/todc_bootstrap.css">
<link rel="stylesheet" type="text/css" href="/css/Bootstrap/inside.css">
<link rel="stylesheet" type="text/css" href="/css/Bootstrap/resource.css">

    <script type="text/javascript" src="/Scripts/JQuery.min.js"></script>
    <script type="text/javascript" src="/Scripts/Bootstrap.min.js"></script>
    <script type="text/javascript" src="/Scripts/JQuery.form.min.js"></script>
    <script type="text/javascript" src="/Scripts/JQuery.validate.min.js"></script>
    <script type="text/javascript" src="/Scripts/JQuery.validate.methods.js"></script>
    <script type="text/javascript" src="/Scripts/JQuery.cookie.js"></script>
    <script type="text/javascript" src="/Scripts/Inside.js"></script>
    
    
    <!--[if IE 7]>
            <link href="/css/Bootstrap/font_awesome_ie7.css" rel="stylesheet" />
        <![endif]-->
    <!--[if lte IE 8]>
            <script src="/Scripts/excanvas_min.js"></script>
        <![endif]-->
    <!--[if lte IE 9]>
            <script src="/Scripts/watermark.js"></script>
        <![endif]-->
    <style type="text/css">
        option
        {
            padding: 5px;
        }
  </style>
</head>
<body>
    <div id="main">
        <div class="container-fluid">
            <div class="row-fluid">
                <div class="span12">
                    <div class="box">
                    <form action="posttext.aspx" method="post" class="form-horizontal form-validate" novalidate="novalidate">
                        <div class="box-title">
                        
                            <div class="span2">
                                <h3>
                                <i class="icon-edit"></i>
                                    群发
                                    </h3>
                            </div><div id="list" class="span4">
                                   </div>
                                                    </div>
                        
                        <input name="action" value="posttext" style="display: none;" />
                        <div class="box-content">
                              <div id="res_block">
                                <div id="r_text" class="control-group r-module">
                                    <div class="control-group">
                                <label for="description" class="control-label">
                                    内容：</label>
                                <div class="controls">
                                <textarea id="description" name="ptext" class="input-xlarge ui-wizard-content ui-helper-reset ui-state-default valid" style="resize: none; width: 436px; height: 168px;" data-rule-required="true"></textarea>
                                    <span class="maroon">*</span><span class="help-inline"></span>
                                </div>
                            </div>
                                </div>
                                <div class="form-actions">
                                    <button type="submit" class="btn btn-primary">
                                        发送</button>
                                    <button type="button" class="btn" onclick="window.history.go(-1);">
                                        取消</button>
                                </div>
                            </div>
                        </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
    </body>
    </html>
    <script type="text/javascript">
        $(function () {
            var str = '<h3>分组</h3><select id="groupid" name="groupid">';
            var msg = <%=json %>;
            msg = eval("(" + msg + ")");
            var rows = msg.groups;
            $(rows).each(function (i) {
                str += '<option value="' + rows[i].id + '">' + rows[i].name + '</option>';
            });
            $("#list").html(str + '</select>');
        })
    </script>


